package com.cindata

import com.cindata.dictionary.CollateralType
import com.cindata.dictionary.RiskWarningTypeDict
import com.cindata.dictionary.AccountTypeDict

class AccountFlow
{
    CollateralType type
    RiskWarningTypeDict warningType
    AccountTypeDict accountType

    static belongsTo = [account: Account, workflow: Workflow]

    static constraints = {
        type unique: ['account', 'workflow']
        warningType unique: ['account', 'workflow']
        accountType unique: ['account', 'workflow']

        type nullable: true, blank: true
        warningType nullable: true, blank: true
        accountType nullable: true, blank: true
        account nullable: true, blank: true
        workflow nullable: true, blank: true
    }
}